﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IncomeOne.aspx.cs" Inherits="Thksoft.Module.ProjectDetails.IncomeOne" %>

<%@ Register Src="~/UserCotrols/SiteMap.ascx" TagName="SiteMap" TagPrefix="uc2" %>
<!DOCTYPE html>
<html class="L_UI">
<head id="Head1" runat="server">
    <title>营业收入计划统计表</title>
    <link href="../../CSS/Main.css" rel="stylesheet" type="text/css" />
    <link href="../../UserCotrols/My97DatePicker/skin/WdatePicker.css" rel="stylesheet"
        type="text/css" />
    <script src="../../UserCotrols/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Scripts/correctpng.js" type="text/javascript"></script>
    <script src="../../Scripts/Total.js" type="text/javascript"></script>
    <script src="../../Scripts/LastSum.js" type="text/javascript"></script>
    <script src="../../Scripts/NowPlan.js" type="text/javascript"></script>
    <script src="../../Scripts/AddRow.js" type="text/javascript"></script>
    <style type="text/css">
        .txt
        {
            border: none;
            height: 18px;
            line-height: 18px;
            width: 150px;
        }
        td.text-left
        {
            text-align: left;
            padding-left: 5px;
        }
    </style>
    <script type="text/javascript">
        var app1 = {};
        //刷新前页面（前页面不许是通过layer插件交互的）
        app1.ReLoad = function () {
            console.log("GoGo");
            console.log(top.$("#layui-layer" + top.layer.getFrameIndex(window.name)));
            top.$("#layui-layer" + top.layer.getFrameIndex(window.name))[0].ReLoad();
            //同时关闭页面
            var index = top.layer.getFrameIndex(window.name);
            top.layer.close(index);
        }
        app1.YanZheng_Jin_E = function (obj) {
            var reg = /^[-]?\d+[.]?\d*$/;
            var va = $(obj).val();
            if (!reg.test(va)) {
                alert("【温馨提示】输入格式不对！");
                $(obj).focus();
            }
        }
    </script>
</head>
<body class="bgcss">
    <%--<body>--%>
    <form id="form1" runat="server">
    <div class="Window" style="width:100%; ">
        <div class="Content" style="top: 0px;width:100%; ">
            <div class="Header" style=" width:100%; bottom: 35px; height: inherit; overflow: inherit; overflow-y: auto;">
                <table style="width: 100%;">
                    <tr>
                        <td>
                        <div style="float: right; text-align: right; color: Red; font-size: 14px; margin-right: 10px;">
                            单位：万元、立方米
                        </div>
                            <asp:GridView ID="gvMonthPlan" Width="100%" CssClass="cont_list" AutoGenerateColumns="False"
                                ShowHeaderWhenEmpty="true" runat="server" OnRowDataBound="gvMonthPlan_RowDataBound1">
                                <EmptyDataTemplate>
                                    没有你所查询的数据
                                </EmptyDataTemplate>
                                <EmptyDataRowStyle BorderStyle="None" />
                                <Columns>
                                    <asp:TemplateField HeaderText="序号" HeaderStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox1" Width="99%" CssClass="txt" Style="text-align: center;"
                                                runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="2%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="项目名称">
                                        <ItemStyle CssClass="text-left" />
                                        <ItemTemplate>
                                        <asp:DropDownList ID="FORM_ProjectName" runat="server" Width="99%">
                                        </asp:DropDownList>
                                            <%--<asp:TextBox ID="TextBox2" Width="99%" CssClass="txt" Style="text-align: left;" runat="server"></asp:TextBox>--%>
                                        </ItemTemplate>
                                        <HeaderStyle Width="10%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="销售量">
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox3" runat="server" Width="90%" CssClass="txt" Style="text-align: right;"
                                                onkeydown="return NoNumber()" onkeyup='app1.YanZheng_Jin_E(this);' onfocus="select()"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="5%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单价" HeaderStyle-Width="10%">
                                        <ItemStyle CssClass="text-left" />
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox4" Width="99%" CssClass="txt" Style="text-align: left;" runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="10%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="金额">
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox5" runat="server" Width="90%" CssClass="txt" Style="text-align: right;"
                                                onkeydown="return NoNumber()" onkeyup='app1.YanZheng_Jin_E(this);' onfocus="select()"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="5%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="银行现金流向" HeaderStyle-Width="10%">
                                        <ItemStyle CssClass="text-left" />
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox6" Width="99%" CssClass="txt" Style="text-align: left;" runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="10%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="备注" HeaderStyle-Width="10%">
                                        <ItemStyle CssClass="text-left" />
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox7" Width="99%" CssClass="txt" Style="text-align: left;" runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="10%"></HeaderStyle>
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField HeaderText="上一级序号" HeaderStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:TextBox ID="TextBox8" Width="99%" CssClass="txt" Style="text-align: left;" runat="server"></asp:TextBox>
                                        </ItemTemplate>
                                        <HeaderStyle Width="10%"></HeaderStyle>
                                    </asp:TemplateField>--%>
                                </Columns>
                                <SelectedRowStyle />
                                <HeaderStyle BackColor="#ECF7FF" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr id="mytr" runat="server">
                        <td>
                            <a href="#" style="color: Blue; font-size: 12px; padding-left: 20px;" onclick="$('#btnAdd').click();">
                                新增一行</a> <a href="#" style="color: Blue; font-size: 12px; padding-left: 5px;" onclick="$('#btnDel').click();">
                                    删除一行</a>
                            <input type="text" value="" runat="server" id="p_id" style="width: 20px;" />
                            <span style="color:Red;">*填写需删除行数</span>
                            <asp:Button ID="btnAdd" runat="server" Text="新增一行" CssClass="hide" OnClick="btnAdd_Click" />
                            <asp:Button ID="btnDel" runat="server" Text="删除一行" CssClass="hide" OnClick="btnDel_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="Content" style="top: auto; bottom: 0px; height: 35px; overflow: inherit;
                text-align: center;">
                <%--<asp:Button ID="btnSum" runat="server" Text="求和" CssClass="bt_css_s" OnClick="btnSum_Click" />--%>
                <asp:Button ID="btnOk" runat="server" Text="确定" CssClass="bt_css_s" OnClick="btnOk_Click" />
                <asp:Button ID="btnDaochu" runat="server" Text="导出" CssClass="hide" OnClick="btnDaochu_Click" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>